<extend name="Base/common"/>
<block name="body">
	<div class="container">
		<if condition = "$apply_status eq 0">
		<div class="application">
		    <div class="app-pic-box">
		    	<img src="__IMG__/icon30.png" width="100%">	
		    </div>	
		    <div class="app-sub-box">
		    	<input type = "hidden" value = "{$user_id}" id = "uid"/>
		    	<a href="javascript:void(0);" onclick="ajax();" class="app-sub">申请</a>
		    </div>
		</div>
		<elseif condition= "$apply_status eq 1"/>
		<div class="app-later">
	    	<img src="__IMG__/icon31.png" width="100%" class="appli-pic">	
		</div>
		</if>
		<div class="app-info">
			<p style="color:#cc2a1e;font-size:14px;">经纪人申请咨询热线   全国招商加盟热线  </p>
			<strong></strong> 电话：17308029736  <br>  
		</div>
	</div>
	<block name="script">
		<script type="text/javascript">
			function ajax(){
				var uid = $('#uid').val();
				$.post(
						"{:U('Apply/Apply')}",
						{id:uid},
						function(data){
							if(data.status==0){
								alert('申请失败');
							}else{
								window.location.href="{:U('Apply/index')}";
							}
						},
						"json"
					);
			}
		</script>
	</block>
</block>
